// 专利编辑页面配置
export const patentConfig = {
  title: "专利信息",
  icon: "patent",
  fields: [
    {
      key: 'title',
      label: '专利名称',
      required: true,
      type: 'text',
      placeholder: '请输入专利名称'
    },
    {
      key: 'patentNumber',
      label: '专利号',
      required: true,
      type: 'text',
      placeholder: '请输入专利号'
    },
    {
      key: 'inventors',
      label: '发明人',
      required: true,
      type: 'array',
      placeholder: '请输入发明人姓名'
    },
    {
      key: 'applicant',
      label: '申请人',
      required: true,
      type: 'text',
      placeholder: '请输入申请人'
    },
    {
      key: 'patentType',
      label: '专利类型',
      required: true,
      type: 'select',
      placeholder: '请选择专利类型',
      options: [
        { value: 'invention', label: '发明专利' },
        { value: 'utility', label: '实用新型' },
        { value: 'design', label: '外观设计' }
      ]
    },
    {
      key: 'status',
      label: '专利状态',
      required: true,
      type: 'select',
      placeholder: '请选择专利状态',
      options: [
        { value: 'applied', label: '已申请' },
        { value: 'published', label: '已公开' },
        { value: 'granted', label: '已授权' },
        { value: 'rejected', label: '已驳回' }
      ]
    },
    {
      key: 'applicationDate',
      label: '申请日期',
      required: true,
      type: 'date',
      placeholder: '请选择申请日期'
    },
    {
      key: 'publicationDate',
      label: '公开日期',
      required: false,
      type: 'date',
      placeholder: '请选择公开日期'
    },
    {
      key: 'grantDate',
      label: '授权日期',
      required: false,
      type: 'date',
      placeholder: '请选择授权日期'
    },
    {
      key: 'field',
      label: '技术领域',
      required: true,
      type: 'select',
      placeholder: '请选择技术领域',
      options: [
        { value: 'ai', label: '人工智能' },
        { value: 'ml', label: '机器学习' },
        { value: 'cs', label: '计算机科学' },
        { value: 'other', label: '其他领域' }
      ]
    },
    {
      key: 'description',
      label: '专利摘要',
      required: true,
      type: 'textarea',
      placeholder: '请输入专利摘要'
    }
  ],
  uploadAreas: [
    {
      key: 'patentDocument',
      label: '专利文件',
      required: true,
      accept: '.pdf,.doc,.docx',
      multiple: true  // 支持多文件上传
    },
    {
      key: 'attachment',
      label: '相关附件',
      required: false,
      accept: '.pdf,.doc,.docx,.zip,.rar',
      multiple: true
    }
  ]
};
